package com.controller.front;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.entity.Query.MusicQuery;
import com.entity.front.MusicFrontQuery;
import com.service.front.MusicFrontQueryService;

@RequestMapping("/musicFrontQuery")
@Controller
public class MusicFrontQueryController {

	@Autowired
	private MusicFrontQueryService seekFrontQueryService;
	
	@RequestMapping("/musicFrontQuery_show")
	public String musicFrontQuery_show(Model model,MusicFrontQuery musicFrontQuery) {
		List<Map<String, Object>> musicFrontQueryList = seekFrontQueryService.queryMusicQuery(musicFrontQuery);
		model.addAttribute("musicFrontQueryList", musicFrontQueryList);
		return "seek";
	}
}
